package com.wx.datastructure.stack.linked;

/**
 * @author wx
 * @Description: 链表类型-栈测试
 * @date 2018/12/18 001818:30
 */
public class StackMain {
    public static void main(String[] agrs){
        LinkedStack<String> linkedStack = new LinkedStack();
        linkedStack.push("wx");
        linkedStack.push("w2");
        linkedStack.push("wx3");
        System.out.println(linkedStack.isEmpty());
        System.out.println(linkedStack.size());
        System.out.println(linkedStack.peek());
        System.out.println(linkedStack.pop());
        System.out.println(linkedStack.size());
        System.out.println(linkedStack.pop());
    }
}
